﻿using PoemGame.Domain.Seedwork;

namespace PoemGame.Domain.GameAggregate.Events
{
    /// <summary>
    /// 游戏完成事件
    /// </summary>
    public class GameFinishEventDataLocal : BaseEventDataLocal
    {
        public GameFinishEventDataLocal(Game game,bool hasWinner, string winnerUserName, Guid winnerId,DateTime date):base(date,game)
        {
            GameId = game.Id;
            GameDescription = game.Description;
            HasWinner = hasWinner;
            WinnerUserName = winnerUserName;
            WinnerId = winnerId;
            
        }

        /// <summary>
        /// 游戏ID
        /// </summary>
        public Guid GameId { get; private set; }
        /// <summary>
        /// 游戏描述
        /// </summary>
        public string GameDescription { get; private set; }

        /// <summary>
        /// 是否由赢家
        /// </summary>
        public bool HasWinner { get; private set; }
        /// <summary>
        /// 赢家用户名
        /// </summary>
        public string WinnerUserName { get; private set; }
        /// <summary>
        /// 赢家ID
        /// </summary>
        public Guid WinnerId { get; private set; }
    }
}
